﻿@model Vms.Web.Models.SCREEN
@{List<SelectListItem> controllertype = (List<SelectListItem>)ViewBag.ControllerType; }
<style>
  .input
  {
      width: 20px;
  }
  
  .input2
  {
      width: 100px;
  }
</style>
<td></td>
<td>
    @Html.TextBoxFor(model=>model.Name, new { @class = "input2" })
    @Html.ValidationMessageFor(model => model.Name)
</td>
<td>
    @Html.TextBoxFor(model=>model.Ip , new { @class = "input2" })
     @Html.ValidationMessageFor(model => model.Ip)
</td>
<td>
   @Html.DropDownListFor(model => model.ControlType, controllertype, new { @class = "input2" })
</td>
<td>
    @Html.TextBoxFor(model => model.Width, new { @class = "input" })
    @Html.ValidationMessageFor(model => model.Width)
</td>
<td >
    @Html.TextBoxFor(model => model.Height, new { @class="input"})
    @Html.ValidationMessageFor(model => model.Height)
</td>
<td><button type=submit  class="btn btn-primary" >Save</button> | <span id="close_create">Close</span></td>